/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package podologia.beansDB;

import java.io.Serializable;
import java.util.Collection;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author Hernan
 */
@Entity
@Table(name = "examvascular")
@NamedQueries({@NamedQuery(name = "Examvascular.findByIdExamen", query = "SELECT e FROM Examvascular e WHERE e.idExamen = :idExamen"), @NamedQuery(name = "Examvascular.findByDolorMarcha", query = "SELECT e FROM Examvascular e WHERE e.dolorMarcha = :dolorMarcha"), @NamedQuery(name = "Examvascular.findByDolorReposoDiurno", query = "SELECT e FROM Examvascular e WHERE e.dolorReposoDiurno = :dolorReposoDiurno"), @NamedQuery(name = "Examvascular.findByDolorReposoNocturno", query = "SELECT e FROM Examvascular e WHERE e.dolorReposoNocturno = :dolorReposoNocturno"), @NamedQuery(name = "Examvascular.findByRellenoVenoso", query = "SELECT e FROM Examvascular e WHERE e.rellenoVenoso = :rellenoVenoso"), @NamedQuery(name = "Examvascular.findByRellenoCapilar", query = "SELECT e FROM Examvascular e WHERE e.rellenoCapilar = :rellenoCapilar")})
public class Examvascular implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE)
    @Column(name = "idExamen", nullable = false)
    private Integer idExamen;
    @Column(name = "dolorMarcha")
    private String dolorMarcha;
    @Column(name = "dolorReposoDiurno")
    private String dolorReposoDiurno;
    @Column(name = "dolorReposoNocturno")
    private String dolorReposoNocturno;
    @Column(name = "rellenoVenoso")
    private String rellenoVenoso;
    @Column(name = "rellenoCapilar")
    private String rellenoCapilar;
    @OneToMany(mappedBy = "idExaVasc")
    private Collection<Atencion> atencionCollection;

    public Examvascular() {
    }

    public Examvascular(Integer idExamen) {
        this.idExamen = idExamen;
    }

    public Integer getIdExamen() {
        return idExamen;
    }

    public void setIdExamen(Integer idExamen) {
        this.idExamen = idExamen;
    }

    public String getDolorMarcha() {
        return dolorMarcha;
    }

    public void setDolorMarcha(String dolorMarcha) {
        this.dolorMarcha = dolorMarcha;
    }

    public String getDolorReposoDiurno() {
        return dolorReposoDiurno;
    }

    public void setDolorReposoDiurno(String dolorReposoDiurno) {
        this.dolorReposoDiurno = dolorReposoDiurno;
    }

    public String getDolorReposoNocturno() {
        return dolorReposoNocturno;
    }

    public void setDolorReposoNocturno(String dolorReposoNocturno) {
        this.dolorReposoNocturno = dolorReposoNocturno;
    }

    public String getRellenoVenoso() {
        return rellenoVenoso;
    }

    public void setRellenoVenoso(String rellenoVenoso) {
        this.rellenoVenoso = rellenoVenoso;
    }

    public String getRellenoCapilar() {
        return rellenoCapilar;
    }

    public void setRellenoCapilar(String rellenoCapilar) {
        this.rellenoCapilar = rellenoCapilar;
    }

    public Collection<Atencion> getAtencionCollection() {
        return atencionCollection;
    }

    public void setAtencionCollection(Collection<Atencion> atencionCollection) {
        this.atencionCollection = atencionCollection;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idExamen != null ? idExamen.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Examvascular)) {
            return false;
        }
        Examvascular other = (Examvascular) object;
        if ((this.idExamen == null && other.idExamen != null) || (this.idExamen != null && !this.idExamen.equals(other.idExamen))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "podologia.beansDB.Examvascular[idExamen=" + idExamen + "]";
    }

}
